<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script src="js/validateIdentifier.js"/>
        <script>
            function check(){
                var a = document.getElementById("fullName");
                alert(a.value);
            }
        </script>
    </head>
    <body>
        <s:property value="message"/>
        <s:set name="name" value="#session.userSession.fullName"/>
        <s:set name="userUni" value="#request.userUni"/>
        <s:set name="major" value="#request.major"/>
        <s:set name="degree" value="#request.degree"/>
        <s:set name="grade" value="#request.grade"/>
        <s:form action="postResume">
            <s:hidden value="1" name="type"/>
            <table align="center">
                <tr>
                    <td align="right">用户名：</td>
                    <td align="left">${sessionScope.userSession.userName}</td>
                </tr>
                <tr>
                    <td align="right">姓名：</td>
                    <td align="left"><s:textfield name="fullName" size="26" value="%{name}"/></td>
                </tr>
                <tr>
                    <td align="right">性别：</td>
                    <td align="left"><s:select name="sex" list="sexes" headerKey="" headerValue="请选择" listKey="dicValue" listValue="dicValue"/></td>
                </tr>
                <tr>
                    <td align="right">学校：</td>
                    <td align="left"><s:select name="university" value="%{userUni}" headerKey="-1" headerValue="请选择" list="universities" listKey="uniId" listValue="uniName"/></td>
                </tr>
                <tr>
                    <td align="right">专业：</td>
                    <td align="left"><s:textfield name="major" size="26" maxLength="20" value="%{major}"/></td>
                </tr>
                <tr>
                    <td align="right">学历：</td>
                    <td align="left"><s:select name="degree" value="%{degree}" headerKey="" headerValue="请选择" list="degrees" listKey="dicValue" listValue="dicValue"/></td>
                </tr>
                <tr>
                    <td align="right">年级：</td>
                    <td align="left"><s:select name="grade" value="%{grade}" list="gradeList" headerKey="" headerValue="请选择" listKey="dicValue" listValue="dicValue"/></td>
                </tr>
                <tr>
                    <td align="right">申请职位：</td>
                    <td align="left"><s:select name="position" list="positions" headerKey="" headerValue="请选择" listKey="dicValue" listValue="dicValue"/></td>
                </tr>
                <tr>
                    <td align="right">身份证号：</td>
                    <td align="left"><input id="identifier" name="identifier" size="26" maxLength="20"/><font id="checkIdentifier" color="#ff0000" size="2"></font></td>
                </tr>
                <tr>
                    <td align="right">手机号码：</td>
                    <td align="left"><input id="mobile" name="mobile" size="26" maxLength="20" onkeyup="var t=document.getElementById('checkMobile');if(isNaN(this.value.toString())){t.innerHTML='请输入正确的手机号码';}else{t.innerHTML='';}"/><font id="checkMobile" color="#ff0000" size="2"></font></td>
                </tr>
                <tr>
                    <td align="right">自我描述：</td>
                    <td align="left"><s:textarea required="true" name="selfDescription" cols="26" rows="10"/></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><s:submit value="next step"/></td>

                </tr>
            </table>
        </s:form>
    </body>
</html>
